package com.wlsk.license.service.zpff;

import com.wlsk.license.common.exception.BusinessException;
import com.wlsk.license.dto.zz.LicenseInfoDto;
import com.wlsk.license.dto.zz.SelectStateReqDto;
import org.springframework.stereotype.Service;

@Service
public class CharterApplyService {

    public LicenseInfoDto selectState(SelectStateReqDto reqDto) {
        LicenseInfoDto licenseInfo = CharterApplyLicense.requestCharterLicenseData(reqDto, CharterApplyLicense.MTA_SYS_STATUS, LicenseInfoDto.class);
        if(licenseInfo == null) {
            throw new BusinessException("查询包车牌状态失败");
        }
        return licenseInfo;
    }
}
